package com.bbs.action;

import java.util.Map;

import com.bbs.entity.User;
import com.opensymphony.xwork2.ActionContext;

public class AppAction {

	private User usre;
	public String execute() {
		return "success";
	}
	

	public String login() {
		User user = new User();
		user.setUsername("tom");
		user.setPassword("123456");
		Map<String, Object> session = ActionContext.getContext().getSession();
		session.put("curr_user", user);
		return "success";
	}
	
	public String home() {
		return "success";
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	//set, get
	
	public void setUsre(User usre) {
		this.usre = usre;
	}

	public User getUsre() {
		return usre;
	}
}
